Feat: 添加未提取记忆补偿+遗忘曲线门控 - #69
Open
TriDefender wants to merge 9 commits into
Open
Conversation
可以重新尝试提取之前未提取的记忆节点,在正式提取前会让用户确认。
添加模仿艾宾浩斯遗忘曲线的门控机制,长期不用的节点会被deprecate掉(非硬性删除,可被重新激活)避免过时噪声影响检索结果
移植了adoresever@1fdec04 src/store/store.ts - CommunitySummary 接口新增 memberSignature: string | null - upsertCommunitySummary() 增加 memberSignature 参数,MERGE 时写入(沿用 embedding 的 CASE 保留模式:传 null 不清空旧值) - getCommunitySummary() / getAllCommunitySummaries() 返回 memberSignature - 新增 getCommunitySummaryBySignature():按签名查社区(ORDER BY updatedAt DESC LIMIT 1),带回 embedding 供复用 src/graph/community.ts - 新增导出 buildCommunityMemberSignature():成员 ID 排序后 sha1(与上游逐字等价) - summarizeCommunities() 循环内两层短路: 1. 签名未变且摘要非空 → 跳过,不调 LLM 2. 其他社区存在相同签名 + 非空摘要 → 复用其 summary + embedding,不调 LLM 3. 否则走原有 LLM 生成路径,upsert 时写入签名
This commit aims to tackle more finegrained memory control on cron sessions: Does a repeating cron session generates 'false popularity' on specific memory nodes? Now it enables you to: - disable memory extraction for cron runs - disable entirely graph functions, so it will not inject context information (it may change workflows, use this with caution since models may lack crucial information. you're advised to test the workflow before hand) - skip session end actions on cron
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本PR添加了两个新功能:
openclaw graph-memory这个命令行handle触发对未提取的记忆重新入库+向量化,避免某些技术原因(llm超时等)遗漏过往记忆;